/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.area_info_yesterday.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 前一天车位信息Entity
 * @author admin
 * @version 2019-04-11
 */
public class AreaInfoYesterday extends DataEntity<AreaInfoYesterday> {
	
	private static final long serialVersionUID = 1L;
	private String areaName;		// 区域名称
	private int remainSpace;		// 剩余车位
	private Date updateTime;		// 更新时间
	private String totalSpace;		// 区域总车位
	private String areaId;		// areaid
	private String timePeriod;	//时间段：1标识0点到1点，2标识1点到2点。。。
	
	public AreaInfoYesterday() {
		super();
	}

	public AreaInfoYesterday(String id){
		super(id);
	}

	@Length(min=0, max=64, message="区域名称长度必须介于 0 和 64 之间")
	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}
	
	@Length(min=0, max=64, message="剩余车位长度必须介于 0 和 64 之间")
	public int getRemainSpace() {
		return remainSpace;
	}

	public void setRemainSpace(int remainSpace) {
		this.remainSpace = remainSpace;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	@Length(min=0, max=64, message="区域总车位长度必须介于 0 和 64 之间")
	public String getTotalSpace() {
		return totalSpace;
	}

	public void setTotalSpace(String totalSpace) {
		this.totalSpace = totalSpace;
	}
	
	@Length(min=1, max=64, message="areaid长度必须介于 1 和 64 之间")
	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	public String getTimePeriod() {
		return timePeriod;
	}

	public void setTimePeriod(String timePeriod) {
		this.timePeriod = timePeriod;
	}
}